package com.magic.zhixin.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.List;

@Data
@Entity
public class Question extends BaseEntity{
    @Column(columnDefinition = "text NOT NULL")
    private String title;//问题标题
    private Long questionBankId;//题库类型
    private Long createUserId;//创建人

    @Transient
    private List<Answer> answers;
}
